import { createStore } from 'vuex'
import type { App } from 'vue';

const store =  createStore({
  state: {
    token:'33'
  },
  mutations: {
  },
  actions: {
  },
  getters:{
    token: state => state.token
  },
  modules: {
  }
})


// 加载 store
export function setupStore(app:App<Element>){
  app.use(store);
}


export {
  store
}

